home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntc6846.zoo / patch / stmttrac.s < prev    next >
Encoding:
Text File  |  1994-10-17  |  892 b   |  33 lines

  1. *
  2. * Statement Trace Routine
  3. *
  4. * Called from C68 if the -trace runtime option is selected.
  5. *
  6. * The -trace option in C68/c386 is intended as a way of allowing a
  7. * source level debugger, or a profiller to be implemented.
  8. *
  9. * The code supplied here is merely a dummy that causes any calls to the
  10. * statement trace code to return without doing anything.  It would need
  11. * to be extended as appropriate to suite the function that was required
  12. * of it.
  13. *
  14. * Amendement History
  15. * ~~~~~~~~~~~~~~~~~~
  16. * #1  22 Jan 93 First Version                           Dave Walker
  17. *
  18. *
  19. * Export: .stmttrace
  20. *
  21.     .text
  22.     .globl    .stmttrace
  23.  
  24. .stmttrace:
  25.  
  26. *
  27. *   The exit code.  In the case of a dummy version of this
  28. *   routine, this is all that is needed.
  29. *
  30.     move.l    (a7)+,a0            ; get return address
  31.     addq.l    #8,a7               ; tidy stack by removing parameters
  32.     jmp    (a0)                ; return to calling point
  33.